package com.wulis.generator.model;

import lombok.Getter;

/**
 * @author WuliBao
 */
@Getter
public class Table {

    /**
     * 表名
     */
    private String name;

    /**
     * 是否生成CRUD代码
     */
    private boolean crud;

    private Table() {}

    public static Table build() {
        Table table = new Table();
        table.crud = false;
        return table;
    }

    public Table name(String name) {
        this.name = name;
        return this;
    }

    public Table crud(boolean crud) {
        this.crud = crud;
        return this;
    }
}
